import type { App } from "vue";
import hasPerm from "./permission/hasPerm";
import hasRole from "./permission/hasRole";
import autoFocus from "./permission/autoFocus";
import clickOutside from "./clickOutSide";
import spinLoading from "./spinLoading";

export default {
  install(Vue: App) {
    Vue.directive("hasPerm", hasPerm);
    Vue.directive("hasRole", hasRole);
    Vue.directive("autoFocus", autoFocus);
    Vue.directive("click-out-side", clickOutside);
    Vue.directive("spin-loading", spinLoading);
  }
};
